// @ts-nocheck
import * as http from '@/tools/http'

/**
 * 下载设备码上传样例
 * */
export async function downloadExample(params: object) {
  return http.get('/api/business/download/example', params)
}

/**
 * 查询设备码
 * */
export async function getEquipment(params: object) {
  return http.get('/api/business/equipment', params)
}

/**
 * 导入设备码
 * */
export async function uploadFile(params: object) {
  return http.post('/api/business/equipment', params)
}

/**
 * 删除设备码
 * */
export async function delEquipment(params: object) {
  return http.del('/api/business/equipment', params)
}

/**
 * 选择设备类型
 * */
export async function SelectEqType(params: object) {
  return http.get('/api/business/equipment/select', params)
}

/**
 * 根据设备类型选择设备码
 * */
export async function getCodeByEqType(params: object) {
  return http.get('/api/business/equipment/code', params)
}

/**
 * 修改设备码
 * */
export async function modifyCode(params: object) {
  return http.post('/api/business/equipment/modifyCode', params)
}

/**
 * 设备校验
 * */
export async function check(params: object) {
  return http.post('/api/business/equipment/check', params)
}
